<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 作业1 -->
		<script type="text/javascript">
			confirm("接下来有几个弹窗来收集信息，确认继续，取消离开，")
			var a = 2,
				b = 3,
				n = "2a",
				m = "5b",
				x = false,
				y = true;
			console.log("a+b=", a + b)
			console.log("a+n=", a + n)
			console.log("a-b+n=", a - b + n)
			console.log("a+b+x=", a + b + x)
			console.log("b+m+y=", b + m + y)
			console.log("a-b+x+y-n+m=", a - b + x + y - n + m)
		</script>
		<!-- 作业2 -->
		<script type="text/javascript">
			console.log("数据类型：" + typeof(Number(prompt("请输入您的工资,来检测工资的数据类型")) + 3000))
		</script>
		<!-- 作业3 -->
		<script type="text/javascript">
			var sum = prompt("请输入年，");
			if (sum % 4 == 0 && sum % 100 != 0 || sum % 400 == 0) {
				console.log("是闰年")
			} else {
				console.log("不是闰年")
			}
		</script>
		<!-- 作业4 -->
		<script type="text/javascript">
			var sum4 = prompt("请输入您的工资")
			if(sum4 > 20000){
				console.log("高工资")
			}else if(sum4 < 20000 && sum4 >= 8000){
				console.log("中高工资")
			}else if(sum4 < 8000){
				console.log("普通工资")
			}
		</script>
		<!-- 作业5 -->
		<script type="text/javascript">
			var sum1 = prompt("请输入身高，单位米")
			var sum2 = prompt("请输入体重")
			sum3 = sum2 / (sum1 * 2)
			if(sum3 < 20){
				console.log("偏瘦")
			}else if(sum3 > 25){
				console.log("偏胖")
			}else{
				console.log("正常")
			}
		</script>
	</head>
	<body>
	</body>
</html>
